package com.t2t.top.dyn;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public  class BeanMethod implements Serializable {
        private static final long serialVersionUID = 1L;
        private String name;
        private String returnType;
        private String declaringClass;
        private List<String> parameterTypes;

        public BeanMethod() {
        }

        public BeanMethod(String name, String returnType, String declaringClass, Class<?>[] parameterTypes) {
            this.name = name;
            this.returnType = returnType;
            this.declaringClass = declaringClass;
            if (parameterTypes.length != 0) {
                this.parameterTypes = new ArrayList();
                Class[] arr$ = parameterTypes;
                int len$ = parameterTypes.length;

                for (int i$ = 0; i$ < len$; ++i$) {
                    Class clazz = arr$[i$];
                    this.parameterTypes.add(clazz.getName());
                }

            }
        }

        public List<String> getParameterTypes() {
            return this.parameterTypes;
        }

        public void setParameterTypes(List<String> parameterTypes) {
            this.parameterTypes = parameterTypes;
        }

        public String getName() {
            return this.name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getReturnType() {
            return this.returnType;
        }

        public void setReturnType(String returnType) {
            this.returnType = returnType;
        }

        public String getDeclaringClass() {
            return this.declaringClass;
        }

        public void setDeclaringClass(String declaringClass) {
            this.declaringClass = declaringClass;
        }

        public boolean isChangeble() {
            if (this.parameterTypes == null) {
                return true;
            } else {
                Iterator i$ = this.parameterTypes.iterator();

                while (i$.hasNext()) {
                    String paramType = (String) i$.next();

                    //try {
                    //    boolean e = true;//TypeConvertor.isTypeSupported(Class.forName(paramType));
                    //    if (!e) {
                    //        return false;
                    //    }
                    //} catch (ClassNotFoundException var4) {
                    //    return false;
                    //}
                }

                return true;
            }
        }
    }